import * as React from 'react'
import {
    Select
} from 'antd';
const { Option } = Select

export default props=>{
    let{cate,value,onChange}=props
    return(
        <div className='qf-cate-selector'>
            <Select 
                style={{width:120}} 
                value={value}
                onChange={v=>onChange(v)}
            >
                {
                    cate.map(ele=>(
                        <Option key={ele._id} value={ele.cate}>{ele.cate_zh}</Option>
                    ))
                }
            </Select>
        </div>
    )
}